<#include "common/main.html">
<#macro bodyId>statistics-agent</#macro>
<#macro content>


<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main ty-common-page">
    <h1 class="page-header">电子银行报表
    </h1>
    <div class="tool-bar">
        <div class="filter">
            <form action="" method="get" class="J_filterForm" id="statistics-form">
                <div class="form-group">
                    <div class="col-sm-11">
                        <div class="col4">
                            <span class="label-text">姓名：</span>
                            <input  class="form-control" name="name" value="${queryDto.name}"/>
                        </div>
                        <div class="col4">
                            <span class="label-text">注册手机号：</span>
                            <input class="form-control" name="phone" value="${queryDto.phone}"/>
                        </div>
                        <div class="col4">
                            <span class="label-text">所属法人行：</span> 
                            <select class="form-control" name="corpBankCode">
                                    <option value="" <#if queryDto.corpBankCode==null>selected="true"</#if>>全部</option>
                                <#list corpBankList as bank>
                                <option value="${bank.code}" <#if bank.code=queryDto.corpBankCode>selected="true"</#if>>${bank.name}</option>
                                </#list>
                            </select>
                        </div>
                        <div class="col4">
                            <span class="label-text">所属支行：</span>
                            <select class="form-control" name="subBankCode">
                                    <option value="" <#if queryDto.subBankCode==null>selected="true"</#if>>全部</option>
                                <#list bankList as bank>
                                <option value="${bank.code}" <#if bank.code=queryDto.subBankCode>selected="true"</#if>>${bank.name}</option>
                                </#list>
                            </select>
                        </div>
                        <div class="col4">
                            <span class="label-text">开始时间：</span>
                            <input class="form-control J_startDate" name="startTimeStr" value="${queryDto.startTimeStr}" />
                        </div>
                        <div class="col4">
                            <span class="label-text">结束时间：</span>
                            <input class="form-control J_endDate" name="endTimeStr" value="${queryDto.endTimeStr}" />
                        </div>
                        <button type="submit" class="btn btn-success J_getExcel" data-action="${rc.contextPath}/statistic/internetBankExport">导出Excel</button>
                        <button type="submit" class="btn btn-success J_search" data-action="${rc.contextPath}/statistic/internetBank">查询</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <div class="table-responsive">
        <table class="table ac-table table-hover">
            <thead>
            <tr>
                <th>姓名</th>
                <th>手机号</th>
                <th>网点</th>
                <th>短信条数</th>
                <th>创建时间</th>
            </tr>
            </thead>
            <tbody>
            <#list statisticInternetBankList as dto>
            <tr>
                <td>${dto.presidentName}</td>
                <td>${dto.phone}</td>
                <td>${dto.name}</td>
                <td>${dto.count}</td>
                <td>${dto.createTime}</td>
            </tr>
            </#list>
            </tbody>
        </table>
    </div>
    <#include "common/page.html">
</div>

<script>
    var config = {

    }
</script>

</#macro>

<script>

</script>